package com.test.calc;

import java.util.ArrayList;


import org.json.JSONException;
import org.json.JSONObject;


public class Calc{
	
	public int add(int a , int b)
	{
		return a+b;
	}
	public int sub(int a , int b)
	{
		return a-b;
	}
	public int mul(int a , int b)
	{
		return a*b;
	}
	public int div(int a , int b)
	{
		return a/b;
	}
	public ArrayList<Item> getJson()
	{
		ArrayList<Item> c = new ArrayList<Item>();
		c.add(new Item(21,12));
		c.add(new Item(2,12));
		return c;
	}
	public Item getItem(){
		return new Item(12,12);
	}
	public JSONObject getItems() throws JSONException{
		JSONObject a = new JSONObject("{a:12,b:32}");		
		return a;
	}
	
}
